<?php
/**
 * 线上正式环境配置
 */
return array(

    /*URL配置*/
    'URL_CASE_INSENSITIVE' => true,  // URL区分大小写,true:不区分，false:区分
    'URL_MODEL' => 2,//REWRIT模式
    'URL_ROUTER_ON' => true,//路由配置
    'API_URL' => 'http://fire.tomobo.com',
    /*debug调试配置*/
    'log_record' => true,  // 进行日志记录
    'log_exception_record' => true,    // 是否记录异常信息日志
    'log_level' => 'emerG,ALERT,CRIT,ERR,WARN,NOTIC,INFO,DEBUG,SQL',  // 允许记录的日志级别
    'db_fields_cache' => false, // 字段缓存信息
    'db_sql_log' => true, // 记录SQL信息
    'tmpl_cache_on' => false,        // 是否开启模板编译缓存,设为false则每次都会重新编译
    'tmpl_strip_space' => false,       // 是否去除模板文件里面的html空格与换行
    'show_error_msg' => false,    // 显示错误信息

    /*页面trace配置*/
    'show_page_trace' => false,


    'redis_pool' => array(
        'redis' => array(
            'host' => '127.0.0.1',
            'port' => 6379,
            'timeout' => 10,
//            'auth' => '',
            'persistent' => false
        )
    ),
    /*数据库链接池配置*/
    'db_pool' => array(
        //后台相关
        'admin' => array(
            'DB_TYPE' => 'mysqli',
            'DB_HOST' => '119.23.59.28',
            'DB_NAME' => 'nboit',
            'DB_USER' => 'zry',
            'DB_PWD' => 'Ooth9Uphae6ooza',
            'DB_PORT' => '3306',
            'DB_PREFIX' => '',
        ),
    ),
    /* Session缓存保存方式  */
    /*'SESSION_TYPE' => 'Memcached',
        'memcached_pool'=>array(
                        'memcached'=>array(
                                        'servers'=>array(array('host'=>'magent1.aishi.org','port'=>'11211')),
                                        'expire'=>'20000',
                                        'prefix'=>'',
                                        'length'=>'',
                                        'lib_options'=>array( // Consistent Hashing 一致性哈希算法
                                                \Memcached::OPT_DISTRIBUTION=>\Memcached::DISTRIBUTION_CONSISTENT,
                                                \Memcached::OPT_BINARY_PROTOCOL=>true,
                                                \Memcached::OPT_LIBKETAMA_COMPATIBLE=>true,
                                                \Memcached::OPT_REMOVE_FAILED_SERVERS=>true,
                                        ),
                                )
                        ),*/


    'LOG4PHP' => array(
        'rootLogger' => array(
            'appenders' => array('DEBUG', 'filelog', 'zmq')
        ),
        'appenders' => array(
            //日志appender
            'filelog' => array(
                'class' => 'LoggerAppenderCatalogFile',
                'layout' => array('class' => 'LoggerLayoutPattern',
                    'params' => array('ConversionPattern' => "%d{Y-m-d H:i:s,u} [%p] : [%c] %F:%L %m%n")
                ),
                'params' => array(
                    'dirname' => '/logs/php',
                ),
            ),
        ),
    ),

    /*模版引擎配置*/
    'TMPL_ENGINE_TYPE' => 'Smarty',
    'TMPL_L_DELIM' => '{',
    'TMPL_R_DELIM' => '}',
);

